package com.qd.common.panda.domain.entity.stroke;

import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 历史行程
 *
 * @author sjk
 */
@Data
@Accessors(chain = true)
public class HistoryStrokeVO {

    /**
     * 行程ID
     */
    private String sid;
    /**
     * 预约时间
     */
    private LocalDateTime appointmentTime;
    /**
     * 入场时间
     */
    private LocalDateTime intoTime;
    /**
     * 出场时间
     */
    private LocalDateTime outTime;
    /**
     * 停车费总额
     */
    private BigDecimal amount;
    /**
     * 停车费总额显示
     */
    private String amountDisplay;
    /**
     * 实际支付总额
     */
    private BigDecimal payAmount;
    /**
     * 实际支付总额显示
     */
    private String payAmountDisplay;
    /**
     * 停车场
     */
    private String parkId;
    /**
     * 停车场显示
     */
    private String parkIdDisplay;
    /**
     * 车牌
     */
    private String plateNumber;
    /**
     * 用户唯一标识
     */
    private String userId;
    /**
     * 过程状态:0生成订单未入场1预约主动取消2预约超时取消3已入场4已缴费未出场5已出场
     */
    private Integer processStatus;
    /**
     * 过程状态显示
     */
    private String processStatusDisplay;
    /**
     * 行程类型
     */
    private Integer tripType;
    /**
     * 行程类型显示
     */
    private String tripTypeDisplay;

    /**
     * 用户是否评价
     */
    private String userEvaluate;

    public void freeData() {
        this.sid = null;
        this.appointmentTime = null;
        this.intoTime = null;
        this.amount = null;
        this.amountDisplay = null;
        this.parkId = null;
        this.parkIdDisplay = null;
        this.plateNumber = null;
        this.userId = null;
        this.payAmount = null;
        this.payAmountDisplay = null;
        this.processStatus = null;
        this.processStatusDisplay = null;
        this.tripType = null;
        this.tripTypeDisplay = null;
        this.userEvaluate = null;
    }
}
